- content_for :meta do
  %meta{:name => "Description", :content => "Information about Jetty Rae's show: " + @show.location}
  %meta{:name => "Abstract", :content => "Jetty Rae's Show: " + @show.location}
  %meta{:name => "Keywords", :content => "shows, gigs, bookings, jetty rae, music, indie, folk, acoustic"}
- content_for :title do
  = "- my show: " + @show.location
- content_for :page_description do
  %p
    Below you will find information on Jetty Rae's
    = @show.location
    show.
%table.show_header_info
  %tr
    %td.location
      %h1.show_location= @show.location
    %td.date
      %h2.show_date=@show.start_time.strftime("%B %o, %Y")
%table.show
  %tr
    %td.map{:rowspan => 10}
      = render :partial => "map"
    %td
      %table.show_info
        %tr
          %td.field_title Starts:
          %td.start_time= @show.start_time.strftime("%I:%M %p")
        - if @show.end_time
          %tr
            %td.field_title Ends:
            %td.end_time= @show.end_time.strftime("%I:%M %p")
        %tr
          %td.field_title Address:
          %td.address=@show.address
        %tr
          %td.field_title Info:
          %td.description= @show.description
        - unless @show.songs.empty?
          %tr
            %td.field_title Set List:
            %td
              %table.set_list{:border => 0}
                - @show.songs.each do |song|
                  %tr{:style => "background-color: #{cycle("#ffffff","#E9E9E9")}"}
                    %td.song_name
                      %a{:href => song_url(song), :title => song.name, :alt => song.name}= song.name
                    %td.play_song
                      - if song.downloadable?
                        %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(song) + ".xml", :type => "application/x-shockwave-flash"}
                          %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(song) + ".xml", :name => "movie"}
                          %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
        - if logged_in? && current_user.is_admin?
          %tr
            %td.field_title Edit:
            %td.field
              %a{:href => edit_show_url(@show), :title => "Edit \"#{@show.location}\"", :alt => "Edit \"#{@show.location}\""}="Edit \"#{@show.location}\""
%table.show_media
  - unless @show.photos.empty?
    %tr
      %td.field_title= "Photos from #{@show.location} on #{@show.start_time.strftime("%B %o, %Y")}:"
    %tr  
      %td
        - @show.photos.each do |photo|
          %table.photo_index
            %tr
              %td.photo_thumb_container
                %a{:href => photo_url(photo)}
                  %img.photo_thumb{:src => photo.public_filename(:thumb), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
  - unless @show.videos.empty?
    %tr
      %td.field_title= "Videos from #{@show.location} on #{@show.start_time.strftime("%B %o, %Y")}:"
    %tr  
      %td.field
        - @show.videos.each do |video|
          %a{:href => video_url(video)}
            %img.video_thumb{:src => video.thumbnail, :alt => video.caption, :title => video.caption}
%hr
- unless @show.comments.empty?
  %div.heading
    %img.heading{:src => "/images/headings/comments.jpg", :title => "Comments", :alt => "Comments"}
  %ol.comment_list
    - @show.comments.each do |comment|
      %li.comment
        - if logged_in? && current_user.is_admin?
          %div.delete_comment
            - form_for comment, comments_url, :html => {:method => :delete} do |form|
              = submit_tag "delete"
        %a.comment_user{:href => user_url(comment.user)}= comment.user.login
        says:
        %p.comment_date= comment.created_at.strftime("%B %o at %I:%M %p")
        %p.comment_text= comment.text
- if logged_in?
  %table.new_comment
    - form_for @comment do |form|
      %tr
        %td= error_messages_for :comment
      %tr
        %td
          %input{:value => @show.id, :name => "comment[show_id]", :type => "hidden"}
          = form.text_area :text, :class => "comment_entry"
      %tr  
        %td.submit= submit_tag 'add comment'
- else
  %p.new_comment
    = "Have something to say about \"" + @show.location + "?\""
    %a{:href => login_url, :title => "Login to jetty rae's website"}Login
    or
    %a{:href => signup_url, :title => "Sign up on jetty rae's website"}Signup